import http from "@/utils/http"

export const setAddress = (data) => http.post("/member/address", data)

export const getAddress = () => http.get("/member/address")

export const getAddressDetail = (id) => http.get(`/member/address/${id}`)

export const putMemberAddressByIdAPI = (id, data) => {
  return http({
    method: "PUT",
    url: `/member/address/${id}`,
    data,
  })
}

export const deleteMemberAddressByIdAPI = (id) => {
  return http({
    method: "DELETE",
    url: `/member/address/${id}`,
  })
}


